﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    /// <summary>
    /// 食堂
    /// </summary>
    public class EM_Canteen
    {
        /// <summary>
        /// 窗口号
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; }

        /// <summary>
        /// 窗口名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 窗口负责人
        /// </summary>
        [Required]

        public String? WindowManager { get; set; }

        /// <summary>
        /// 窗口名
        /// </summary>
        public string? WindowName { get; set; }

        /// <summary>
        /// 该窗口人数
        /// </summary>
        public int Number{ get; set; }

        /// <summary>
        /// 该窗口评分 1:差  3：良  5：优秀
        /// </summary>
        [Required]
        public ScoreEnum Score { get; set; }

        /// <summary>
        /// 该窗口人员是否有健康证明  true：有   false：无
        /// </summary>
        public bool Medical_Certificate { get; set; }

        


        public enum ScoreEnum
        {
            差=1,

            良=3,

            优秀=5

        }
    }
}
